Method: YARD::I18n::Messages#[]

Defined in:
lib/yard/i18n/messages.rb

#[](id) ⇒ Message?

Returns a registered message for the given id, or nil if no message for the ID is found.

Parameters:

  • id (String)

    the message ID to perform a lookup on.

Returns:

  • (Message, nil)

    a registered message for the given id, or nil if no message for the ID is found.

Since:

  • 0.8.1



27
28
29
# File 'lib/yard/i18n/messages.rb', line 27

def [](id)
  @messages[id]
end